import request from '@/router/axios'

export function fetchPvmArcInterventionTypeList(query) {
  return request({
    url: '/pvm/interventionType/page',
    method: 'get',
    params: query
  })
}

export function getInterventionList() {
  return request({
    url: '/pvm/interventionType/getListInfo',
    method: 'get'
  })
}

export function getListInfoByMasterType(masterType) {
  return request({
    url: '/pvm/interventionType/getListInfoByMasterType/' + masterType,
    method: 'get'
  })
}

export function addPvmArcInterventionTypeObj(obj) {
  return request({
    url: '/pvm/interventionType',
    method: 'post',
    data: obj
  })
}

export function getPvmArcInterventionTypeObj(id) {
  return request({
    url: '/pvm/interventionType/' + id,
    method: 'get'
  })
}

export function delPvmArcInterventionTypeObj(id) {
  return request({
    url: '/pvm/interventionType/' + id,
    method: 'delete'
  })
}

export function putPvmArcInterventionTypeObj(obj) {
  return request({
    url: '/pvm/interventionType',
    method: 'put',
    data: obj
  })
}


export function getPvmArcInterventionInfo(optometryId) {
  return request({
    url: '/pvm/intervention/getListInfoByOptometryId/' + optometryId,
    method: 'get'
  })
}